﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTM.Repository
{
    /// <summary>
    /// Interface <see cref="IUnitOfWork"/> define unit of work.
    /// </summary>
    public interface IUnitOfWork : IDisposable
    {
        #region Properties

        /// <summary>
        /// Players repository.
        /// </summary>
        IPlayerRepository Players { get; }

        #endregion Properties

        #region Methods

        /// <summary>
        /// Commit changes
        /// </summary>
        void Commit();

        #endregion Methods
    }
}